﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace tracnghiem
{
    public partial class Form1 : Form
    {
        Database db = new Database();
        public Form1()
        {
            InitializeComponent();
        }

        private void btnHuy_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            String userName = txtTenDangNhap.Text;
            String passWord = txtMatKhau.Text;
            if (db.isValidUser(userName, passWord))
            {
                MessageBox.Show("Dang nhap thanh cong!");
            }
        }
    }
}
